package com.xinchuang.common;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author zkwczx
 */
@Component
public class KeyWordSystem {

    /**
     * 	JWT ID
     */
    public static final String JWT_ID = "20210322";

    /**
     * 	JWT 签发人
     */
    public static final String JWT_AUTHOR = "XINCHUANG666";

    /**
     * 总计查询标识
     */
    public static final String INFO = "true";

    /**
     * redis保存时间
     */
    public static final long REDIS_TIME = 86400L;

    /**
     * 	登录时间校验是否开启
     */
    @Setter
    @Getter
    @Value("${system.login}")
    private String LOGIN;

    /**
     * 	token过期时间 生成使用单位秒
     */
    @Setter
    @Getter
    @Value("${system.login_time}")
    private String EFFECTIV_TIME_INT;

    /**
     * 默认登录时间 3天
     */
    public static long LOGINTIME = 60 * 60 * 24 * 3;

    @Setter
    @Getter
    @Value("${system.version}")
    private String VERSION;

    /**
     * 	本地文件存储路径
     */
    @Setter
    @Getter
    @Value("${setting.file_url}")
    private String FILE_URL;

    /**
     * 	服务地址
     */
    @Setter
    @Getter
    @Value("${setting.server_url}")
    private String SERVER_URL;

    /**
     * 	系统名称
     */
    @Setter
    @Getter
    @Value("${setting.name}")
    private String SYSTEM_NAME;

    /**
     * 	获取要素
     */
    @Setter
    @Getter
    @Value("${setting.api_element}")
    private String API_ELEMENT;

    @Setter
    @Getter
    @Value("${setting.python_url}")
    private String pythonUrl;

    @Setter
    @Getter
    @Value("${setting.point_url}")
    private String pointUrl;

    @Setter
    @Getter
    @Value("${setting.exe_url}")
    private String exeUrl;

    /**
     * 	是否为武汉项目
     */
    @Setter
    @Getter
    @Value("${setting.wuhan}")
    private Boolean wuhan;

    @Setter
    @Getter
    @Value("${setting.du}")
    private String du;

    @Setter
    @Getter
    @Value("${setting.fen}")
    private String fen;

    @Setter
    @Getter
    @Value("${export.height}")
    private Integer exportHeight;

    @Setter
    @Getter
    @Value("${export.lon}")
    private Integer exportLon;

    @Setter
    @Getter
    @Value("${export.lat}")
    private Integer exportLat;

    @Setter
    @Getter
    @Value("${setting.brag}")
    private Double brag;

}
